<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>魔术引号</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="security.variables.html">用户提交的数据</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="security.magicquotes.what.html">什么是魔术引号</a></div>
 <div class="up"><a href="security.html">安全</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="security.magicquotes" class="chapter">
 <h1>魔术引号</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="security.magicquotes.what.html">什么是魔术引号</a></li><li><a href="security.magicquotes.why.html">为什么要用魔术引号</a></li><li><a href="security.magicquotes.whynot.html">为什么不用魔术引号</a></li><li><a href="security.magicquotes.disabling.html">关闭魔术引号</a></li></ul>

<div class="warning"><strong class="warning">Warning</strong><p class="simpara">本特性已自
PHP 5.3.0 起<em class="emphasis">废弃</em>并将自 PHP 5.4.0
起<em class="emphasis">移除</em>。</p></div>
 <p class="para">
  魔术引号（Magic Quote）是一个自动将进入 <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> 脚本的数据进行转义的过程。最好在编码时不要转义而在运行时根据需要而转义。
 </p>

 

 

 

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="security.variables.html">用户提交的数据</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="security.magicquotes.what.html">什么是魔术引号</a></div>
 <div class="up"><a href="security.html">安全</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
